<template>
  <div ref="chart" :style="chartStyle"></div>
</template>

<script>
import echarts from 'echarts';

export default {
  name: 'mouse',
  props: {
    config: {
      required: true,
    },
    chartStyle: {
      require: false,
      type: Object,
      default: () => ({
        height: '100%',
        position: 'absolute',
        width: '100%',
        top: '0px',
        bottom: '0px',
        left: '0px',
      }),
    },
  },
  data() {
    return {
      chart: null,
    };
  },
  created() {

  },
  mounted() {
    this.renderChart();
  },
  methods: {
    handleResize() {
      if (this.chart) {
        this.chart.resize();
      }
    },
    renderChart() {
      if (!this.chart) {
        this.chart = echarts.init(this.$refs.chart, this.config.theme);
      }
      const option = this.makeOptions(this.config, this.chartData);
      this.chart.clear();
      this.chart.setOption(option);
      setTimeout(() => {
        this.chart.resize();
      }, 100);
    },
    makeOptions() {
      // 创建path形状的方法,利用Illustartior定制你自己的个性化图标

      // 准备工具，安装Illustartor软件也就是常说的AI软件

      // SVG <path>详细的自个儿百度了解下即可，很简单，一点不难

      // 主要说下【实现方法】和【过程中遇到的问题】

      // 1、实现方法很多，本次主要说下使用人最多的一个【懒人法儿】，用别人画好的

      // 2、素材推荐到【iconfont】下载SVG格式，而后直接打开到Illustartor编辑

      // 3、右键查看路径，把所有可释放的复合路径全部释放，这个要必须，
      //   咱们的目的是要一个路径，也只能用一个路径，所以一个图形
      //   可能会有多个路径画出来的，所以要把多个路径合成一个路径
      //
      //  【更多复合路径？】自个儿百度了解下即可，很简单，一点不难

      // 4、全部选中右键菜单里选择【建立复合路径】

      // 5、文件-导出-导出为 -保存类型【选择SVG】-点击按钮导出

      // 6、点击弹窗【左下角显示代码】，这里Illustartor会自动打开本地记事本，
      //   SVG代码将显示出来，找到path标签 d="复制这里的代码"
      //  【也可直接保存，在SVG文件右键菜单选择记事本打开，复制一样的】

      // 7、'path://粘贴到这里',

      // 8、OK了

      // 大概写了下基本实现方法，过程中也可能会遇到其他问题

      // 补充：如果你有path路径代码没有SVG文件的情况如何在次编辑，办法如下
      // 复制【M - Z 的代码】，把一个已有的SVG文件内的path的代码替换保存即可

      const option = {
        title: {
          text: 'Mouse Beautiful',
          textStyle: {
            fontWeight: 'normal',
            fontSize: 25,
            color: '#fff',
          },
        },
        series: [{
          type: 'liquidFill',
          data: [0.7, 0.8, 0.75, 0.21, 0.2, 0.13, 0.1],
          radius: '80%',
          waveLength: '90%',
          waveHeight: '10',
          amplitude: 10,
          outline: { show: false },
          backgroundStyle: {
            color: '#333',
            borderColor: '#fff',
            borderWidth: 1,
            shadowColor: 'rgba(0, 0, 0, 0.4)',
            shadowBlur: 20,
          },
          // path代码粘贴到此处,代码的多少取决于图形的复杂度
          shape: 'path://M827.2,941.8l6,17.1s-45.5,23.3-73.2,17.5-14.6-15.5-14.6-15.5,22.7-1.3,35.9-13.1S824.9,939.1,827.2,941.8Zm7.2,16.4a292.8,292.8,0,0,1-39.5,8.4c-28.6,4.1-46.3-1.2-53.5-5.9s-25.4,5-17.2,16.6c6.5,9.2,28.6,19.8,28.6,19.8l92.1-16.5-7.4-20.9M713.6,943.5A14.8,14.8,0,0,0,742,952a14.8,14.8,0,1,0-28.4-8.5Zm6.5,2.2a8.6,8.6,0,0,0,5.8,10.8,8.7,8.7,0,1,0,5-16.7A8.6,8.6,0,0,0,720.1,945.7Zm2.7,31.2,28,21L847,983.8l-5.1-6.6L754.8,988s-25.5-13.2-28.4-19.6S721.3,973.7,722.8,976.9Zm41.5-161.5s-20.6,141.3,6.5,163.7,174.8-45.8,215-3.7-23.3-129-9.3-167.4C1001.5,739.7,791.5,783.5,764.3,815.4Zm54.5,130.2c-5.3,2.3-10.3,7.2-11.9,12.1s-.8,8.7,4.2,7.9,10.2-5.2,11.7-9.6-1.8-7.2-3.2-10.8m31.8-4.4c-3.7-1.5-12.9,2-17.7,6s-6.8,12.4-14.3,13.6c-.3,6.7,13.6-.7,17.5-3.8s3.7-5.2,6.5-8.4,7-5.9,8.9-7.1m-65,10.1c-1.4-.9-3.4.6-5.3.6,5.9,1.3,5.2,9.7,9.1,13.1s12.6,4.4,19.4-.7c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.1c1.1-1,3.6-4,3-2.7m-45.8,6.4,1.1-.5c-9,6.6-13.3.9-17.7-1.5a12.2,12.2,0,0,0-9.9-.6c-2.8.9-9.5,3.2-11.9,5.2,8,.5,7,8.2,15,8.3,4,.1,8.7-1.8,13.3-3.8a32.7,32.7,0,0,0,7-3.5c1.6-1.2,3.6-4.2,4.4-3.4M935.7,931c-.5-.3-6.7,1.8-8.8,2.5a5.4,5.4,0,0,1,.3,5.9c2.6-3.2,6.4-5.4,8.1-9m-21.6,3.7c-1.9.1-6.3-.4-9.4.6-.2-.1-.2-.1,0-.1,2.6,1,2.8,5,3.5,7.3.5-2,3.6-7.3,5.5-6.9m-1.7,20c-.4,1.4-5.6,4.7-6.3,6.9,3.1-.8,7.5-.8,10.6-2.2-1-1.3-1.9-5.8-3.8-5.3m77.4-11.3c-.3-1.6-2.8-1.9-4.2-3.2,3.3,5.1-3.1,10.5-2.7,15.7s6,11.9,14.4,13.1c-6.4-5.1,1.4-10.1,2-14.8.3-2.7-6.5-11.9-11-12.4M965,946c5.5,5.8-.4,10.8,5.4,16.3,2.9,2.8,7.6,4.5,12.4,6.2m-67.9-3.7c-13.7,11.1-36.4,11.4-36.4,11.4s-13.5,9.1,13.9,16.2,73.9-14.2,73.9-14.2l-5.2-17.3C958.9,958.1,928.6,953.6,914.9,964.8Zm52.6,12.8a292.3,292.3,0,0,1-39.8,6.6c-28.8,2.7-46.2-3.4-53.2-8.4s-25.6,3.9-17.9,15.8c6,9.5,27.6,21.1,27.6,21.1l92.8-12.2-6.4-21.3M847.5,957.3a14.8,14.8,0,1,0,18.9-9A14.9,14.9,0,0,0,847.5,957.3Zm6.4,2.5a8.7,8.7,0,1,0,11.1-5.3A8.6,8.6,0,0,0,853.9,959.8Zm1.3,31.4,27,22.2,96.7-9.6-4.8-6.9-87.5,6.8s-24.8-14.4-27.4-20.9S853.9,987.9,855.2,991.2Zm.4-349c-33.7,58.9-55.2,49.5-91.3,174.2l206.2-1.5c16-19.4,17.3-46.9,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.4,0,0,0-.8,3.5c.1.6.4,3.1,1.6,3.5-.8-.9.6-1.9,1.2-2.5s.8-1.4,1.2-2.3,1.3,1.1,2.7,1.5A11,11,0,0,0,932.8,612Zm-22.6,8.3s1.6-2.8,1.4-3.8l2.5,3.4s2.4-3,.9-5.8c.6.9,2.1,1.1,3.1,1.2h1.7l1.9.7a2.5,2.5,0,0,0-.4-1.1,7.5,7.5,0,0,0-2.7-2.6c-1.1-.8-2.3-.8-3.5-1.1s-2.5-.2-2.7-1.4,1.1-1.7,1.3-2.3.6-2.3-.7-4.2c-.6.6-.7,1.7-1.4,2.2s-1.5-1.5-1.7-2.2c-.6.9-1.4,2.8-1,3.8s1.9,1.9,1.3,3.1-2.3,1.1-3.4,1.4a6.7,6.7,0,0,0-3.3,1.8c-.4.6-2,2.5-1.6,3.6.2-1.2,1.9-1,2.8-1a5.7,5.7,0,0,0,2.6-.8c-.2.1.1,1.7.8,2.8A8.4,8.4,0,0,0,910.2,620.3Zm23.4-175.1c-18.1-20.2-85.1-10.4-96.7-7.2s4.1,54.4,4.1,54.4l125.2-3.6S951.8,465.4,933.6,445.2Zm-92.1,58,134.9,2.2-5.6-12.1H841.5Zm11.6-36.6-5.9,11.6-14-11.2,9.7-15,18.4,8.3-5.8-10.7-14.3-3.2-10,10.9,3.4,21.4,16,6.8,6.3-12.1Zm18.1-14.2-9.5,2.4-.4-13.5,13.3-1.8,4.3,14.6,3.2-8.6-8.9-11-15,2.2-2.9,11.1,4,12.5,9.9-2.3ZM853.3,652.3c54.4,29.4,136.2,23.8,150.3,2.4s2.8-21.5,2.8-21.5C958.7,679,853.1,636,853.1,636,849.4,639.8,853.3,652.3,853.3,652.3ZM681.1,762.2m310.4-27.1S939.1,808,974.6,885.6C974.6,885.6,949.4,821.1,991.5,735.1ZM779.2,813.7c7.5-56.1,54.3-127.2,54.3-127.2C780.9,743.2,779.2,813.7,779.2,813.7ZM976.5,528.5s20.6,25.3,25.2,92.6C1001.7,621.1,1002.7,550,976.5,528.5ZM717.4,339.3a29.1,29.1,0,0,0,2.6,27.5m-16.2-14.6a29,29,0,0,0,16,22.5m6.5,11.8a28.7,28.7,0,0,0,11.2,25.1m-16.7-31.7a29.2,29.2,0,0,0-2.9,27.5m319.8-132.3c-7.4-24.3-38.7-36.3-70-26.9s-50.7,36.9-43.4,61.2,38.8,36.3,70,26.9S1045,299.4,1037.7,275.1Zm-12.3,13.4c-2.6-22.8-28.2-38.5-57.1-35.1s-50.3,24.5-47.6,47.3,28.3,38.6,57.2,35.2S1028.1,311.3,1025.4,288.5ZM870.9,190.8c-21.4,1.1-37.6,24-36.1,51.1s20,48,41.4,46.9,37.6-24.1,36.1-51.1S892.3,189.6,870.9,190.8Zm.9,7.9c-18.8,1-33,21.5-31.7,45.7s17.6,43,36.4,42,33.1-21.5,31.7-45.7S890.6,197.7,871.8,198.7Zm68.4,184.8c56.7-83.4,17.4-127.1-78.9-125.4S706.8,381.7,706.8,381.7C741.2,407,883.6,466.9,940.2,383.5ZM874.7,209.7c-16.5.9-29,18-27.9,38.1s15.4,35.7,31.9,34.8,29-18,27.9-38.1S891.2,208.9,874.7,209.7Zm138.2,73.6c-5.5-20.2-29.4-31.3-53.4-24.7s-39.1,28.2-33.6,48.4,29.5,31.3,53.5,24.7S1018.4,303.5,1012.9,283.3Zm-103.8,26s-11.4,1.1-17.4,3.9-13,8.8-13.1,12.9,4.6,6.8,5,6.8-1.3,11,6.9,9.7,16.6-16.5,16.6-16.5-6.6,8.7-9.3,9.4c0,0,.3-2.9,4.7-8.1,0,0-7.4,6.8-9,9.2,0,0,3.9-7.6,6.5-10,0,0-8.6,6.9-9.8,8.5,0,0,5.9-9.2,8.6-11,0,0-7.5,4.5-11.2,8.4,0,0,7.8-10.8,11.7-11.5,0,0-9.6,3.3-12.7,6.1,0,0,8.9-6.9,13.5-7.6,0,0-9.4,1.4-11.8,2.8,0,0,9.5-7.7,12.3-7,0,0-9.9,2-11.6,2.7C889,318,906.2,308.4,909.1,309.3Zm28,26.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.6,0,0,9.3,1.8,12,1.3,0,0-11.5,4.1-13.8,2.5,0,0,9.9,1.5,11.7,1.3C952.4,328.6,933,331.9,930.6,330.1Zm-54.1-32.8c1.3,1.3,9.7,6.8,9.7,6.8-2.8-.3-8.7-11.1-8.7-11.1,1.8,2.2,9.8,7,9.8,7-4-2.3-9.6-12.1-9.6-12.1,1.8,3.8,9.5,10.4,9.5,10.4-3.3-2.1-6.6-15-6.6-15,2,5,7.3,12,7.3,12-1.8-2.7-3.9-13.5-3.9-13.5.5,2,5.9,11.6,5.9,11.6-1.4-3.2-2.3-11.7-2.3-11.7.6,2.8,5,11.9,5,11.9-2.2-6.6-1.3-9.3-1.3-9.3,2.2,1.7,9.9,20.3,9.9,20.3S894.1,279.4,887,275s-9.9,6.5-9.9,6.5-5.8.6-7.2,4.4,2.8,12,7.3,16.9,14.7,10,14.7,10C888.9,312.6,876.5,297.3,876.5,297.3Zm66.7-17.4c1,1.7-.9,9.7-.9,9.7s4.2-9.1,4.2-9.1-2.5,11.1-2.5,11.1c1.9-1.4,6.2-11.1,6.2-11.1,0,5.3-5.1,15.3-5.1,15.3s7.4-8.8,7.4-8.8c1.2,2.3-6,12.2-6,12.2s7.7-7.7,7.7-7.7c.5,2-8,10.2-8,10.2s8.2-4.8,8.2-4.8c-.2,2-8.3,9.5-8.3,9.5,9.2-2.6,13.6-11.4,13.6-11.4,3.8-8.5-4.8-15.4-4.8-15.4s-3.2-8.8-10.8-7.3-5.3,17.5-5.3,17.5S943.2,279.9,943.2,279.9Zm-26.5,3.3s12.4-11.3,7.5-17.5-13.1-2.3-13.6-1.3-11.4-.2-14,9.1c0,0-2.4,9.9,3.3,18.2,0,0-1.5-11.4-.4-13.1,0,0,1.7,9.2,3.4,9.3,0,0-1.4-12.3.4-13.6,0,0,.4,10.4,1.1,11.4s.7-12.8,3.2-13.8c0,0-.8,10.8.1,12s2.6-11.4,6.1-15.7c0,0-3.1,10.6-2.4,13,0,0,3.9-9.9,5.4-10.6s-3.3,8.5-2.7,10.2c0,0,3.8-7.7,5.7-8.4C919.8,272.4,916.9,282,916.7,283.2ZM807.6,322.6,823.4,333c8.8-3.2,13-9,20.2-16.9,0,0-19.9,11.5-32.8,14.7s-56.4,22.5-59.3,36.7c0,0,31.3-24,56-30.1A153.8,153.8,0,0,0,823.4,333Zm5.9-2.8-5.2,2.4s8.1-27.4-.3,1.5-71.2,37.1-68.4,36.9C824.8,367.6,829.3,330.2,829.3,330.2Zm-18.4,32.2c14.5-8.5,31.2-46.4,31.2-46.4-1.2,3.2-2.1,11.2-43.6,23.5s-34.8,28.6-34.8,28.6C780.1,382.1,798.2,369.8,810.9,362.4Zm-3.9-1.5c12.1-8.6,21.7-26,21.7-26-12.1,7.8-2.9,4-32.4,15.1s-26.5,15.3-26.5,15.3C778.4,377.4,794.9,369.3,807,360.9Zm-31.4-7.2s-6.2,21,11,18,27.6-16.3,28.7-17.9-.2-14.8-20-9.6-19,9.3-19.7,9.5m1.5,2.9s3.5,18.9,14.1,12.1S801.8,356.5,802,355s-6.9-18.1-18.6-9-9.1,15.1-9.5,15.4m2.5-4c-1.2,1.2-.8,3.7,1,5.4s4.3,2.3,5.6,1,.8-3.7-1-5.5S777.7,356.1,776.4,357.4Zm59.2,164c-14.1,0-48.1-39.8-48.1-39.8L753,502.5s.5,34.7,54.4,79.1c33.9,28,40.8,26.3,114.6-45.6s18.2-91.5,5.6-93.5c-42.4-6.5-72.7,55.6-87.4,78.7C840.2,521.2,845.1,521.4,835.6,521.4Zm-34.6-35-46.6,34.1,12.4,17.2,46.5-31.3ZM770.1,553l53.3-41.7L791,470l-47,36.8Zm14.7-72.6s.1-1.6.1-4.4c.2-12.6.4-48.6-4.4-54.6s-18.2-9.5-18.2-9.5l-16.8,2.2-2.9,2.9s4.2,2.5,19.2,5.9c8.7,1.9,4.8,9.4,4.8,9.4s-20.4-5.8-23.3-6.5-9.4,1.4-9.4,1.4-17.5,16.1-17.5,18.2,11.6,2.2,18.2,5.9,15.3,14.5,16.7,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4,7.9-7,8-4.4,10.1-5.3M812,568c-1.2-1.2-3.4,0-5.4-.4,5.6,2.4,3.3,10.5,6.5,14.6s11.5,6.6,19.2,2.9c-8.1-.6-4.4-9.2-6.5-13.4-1.2-2.4-11.9-6.3-16-4.2m-81.2-83.3c9.9,93.1,35.4,103.4,35.4,103.4,13.6-33.3,15.7-108.8-13.6-145.5s-51.1,97.7-51.1,97.7C730.2,508.9,728.6,484.2,728.6,484.2Zm-3.3-29.7s-28.1,87.4-5,150c0,0,36.3-57.2,33.4-124S725.3,454.5,725.3,454.5Zm27-1.7s11.3,64.8-6.6,91C745.7,543.8,767.9,532.8,752.3,452.8Zm-32,125.4c-6.6-52.8,8.7-103.1,8.7-103.1C708,536.5,720.3,578.2,720.3,578.2ZM724,460.7s-13.6,26.4-11.9,54.4C712.1,515.1,713.3,483,724,460.7Zm13.8,62.2s5.3.6,6.2,1.8-3.6-3.4-5.6-4c0,0,4.3,1.3,5.6,2.4s-4-4.9-5.1-4.6,4.5,1.5,5.8,3.8c0,0-4.2-6.3-5-6.2s5,3.3,5.6,5c0,0-3.3-6.3-4.1-6.6s3.9,3.3,4.6,4.6-2.6-5-2.8-5,3.6,1.8,4.4,4c0,0-1.8-6.9-6.3-5.3s-4.7,7-4.4,7.8-2.9,3.3-.6,8.6,7.2,1.7,7.8,1-4.7.6-5.6-.6,4.3-.2,5.3-1.2-5.3-.2-6.3-1.2,4.1.5,5.7-.1c0,0-4.2-.8-5.7-2.3,0,0,5,.5,5.6.9m11.4-9.6s1.1-6.7.8-10.6-2.1-8.9-3.8-9.7-3.6,1.4-3.7,1.6-4.6-2.7-5.1,2.1,4.9,12.4,4.9,12.4-2.9-5.3-2.9-6.9c0,0,1.2.6,2.9,4.1,0,0-1.9-5.4-2.7-6.8a32.8,32.8,0,0,1,3.4,5.5s-1.8-6.1-2.3-7.1,3.1,5.1,3.5,6.9a54.1,54.1,0,0,0-2-7.9s3.5,6.4,3.3,8.7c0,0-.1-6-.9-8.3,0,0,1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,1.4,5.3c-.4-1.2-2.6-5.3-2.6-5.3,1.2,3,.8,4.3.8,4.3s-5.1-9-5.1-9,4,11.4,7.3,13.1,4.4-3.4,4.4-3.4a3.7,3.7,0,0,0,3.1-2.3c.6-1.8-1.6-5.4-3.8-7.5s-7-4-7-4S753.8,450.3,753.8,450.3Zm-17.9,8.1s-5.4,5.7-2.9,8.4,6,.5,6.2,0,5.2-.3,6.1-4.7a11.7,11.7,0,0,0-2-8.3s1,5.2.5,6.1-1-4.2-1.8-4.2,1,5.6.2,6.3a39,39,0,0,0-.8-5.2s.1,5.9-1,6.5,0-5-.5-5.5-.8,5.3-2.3,7.4c0,0,1.1-5,.7-6.1s-1.4,4.7-2.1,5.1,1.2-4,.9-4.8-1.5,3.7-2.3,4.1S735.8,459,735.9,458.4Zm-10,118.7c9.2-40.4-13-108.4-13-108.4C723.1,509.8,725.9,577.1,725.9,577.1Z',
          color: ['#d9220d'],
          label: { normal: { formatter: '' } },
        }],

      };
      return option;
    },
  },
  watch: {
    config: {
      deep: true,
      handler() {
        if (this.config.needResize) {
          this.config.needResize = false;
          this.handleResize();
        }
      },
    },
  },
};
</script>

<style scoped lang="stylus"></style>
